package com.nnfe.fyd.bean;

import java.io.Serializable;

/**
 * 用来接收有实际数据
 */
public class HttpResult<T> implements Serializable {

    public int status;  // 0 为成功， 1 为失败
    public String msg;
    public T data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        if (null == msg) {
            return "";
        }
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
